package com.hk.employeemanagementsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @author by 何坤
 * @Classname NationEntity
 * @Description TODO
 * @Date 2019/12/18 10:23
 */
@TableName("tab_nation")
public class NationEntity {
    @TableId(value = "nat_id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "nat_name")
    private String name;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "NationEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
